package main

import (
	"fmt"
	"github.com/axgle/mahonia"
	"io/ioutil"
)

func main() {
	doc := mahonia.NewDecoder("gbk")

	data, err := ioutil.ReadFile("E:\\qq\\916793573\\FileRecv\\0705 sasislog\\77\\sasis_error.log")
	if err != nil {
		fmt.Println("read error")
		return
	}
	// enc := mahonia.NewEncoder("gbk")
	fmt.Println(doc.ConvertString(string(data)))
}
